package com.scs.application.modules.sys.mapper;

import com.scs.application.core.mapper.IBaseMapper;
import com.scs.application.modules.sys.entity.Menu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuMapper extends IBaseMapper<Menu> {
    /**
     * 获取用户菜单
     * @param userId
     * @return
     */
    List<Menu> getUserMenu(@Param("userId") String userId);

    /**
     * 获取角色菜单
     * @param roleId
     * @return
     */
    List<Menu> getRoleMenu(@Param("roleId") String roleId);
}
